package com.zhu.transaction.service;

import com.zhu.transaction.pojo.Message;
import com.zhu.transaction.pojo.state.BackState;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhu
 * @since 2021-01-07
 */
public interface MessageService {

    //添加消息
    BackState addMessage(Message message);

    //更新信息
    BackState updateMessage(String messageId);

    //查询关于接受者所有消息
    List<Message> getMessageByReceiveUser(String userId);

    //查询消息的未读数
    Integer getUnReadMessageCount(String userId);

    //删除消息
    BackState deleteOneMessage(String messageId);
}
